package com.sc.nft.dao;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.sc.nft.entity.IdcardInfo;
import lombok.extern.slf4j.Slf4j;
import com.sc.nft.entity.SandBizRecord;
import com.sc.nft.mapper.SandBizRecordMapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * 衫德业务记录表(sc_sand_biz_record)数据DAO
 *
 * @author zxy
 * @since 2022-12-31 19:38:43
 * @description 由 Mybatisplus Code Generator 创建
 */
@Slf4j
@Repository
public class SandBizRecordDao extends ServiceImpl<SandBizRecordMapper, SandBizRecord> {

    public List<SandBizRecord> getListByUserId(Long id) {
        LambdaQueryWrapper<SandBizRecord> wrapper = new LambdaQueryWrapper<>();
        wrapper.eq(SandBizRecord::getUserId,id);
        return list(wrapper);
    }
}